//
//  BKCMCellAmountView.h
//  bestkeep
//
//  Created by 毛韶谦 on 2017/1/16.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BKCMCellAmountView;
@class BKCMGoodsDetailModel;

@protocol CellDataViewDelegate <NSObject>

-(void)cellDataView:(BKCMCellAmountView *)dataView addCount:(UITextField *)addTextField;
-(void)cellDataView:(BKCMCellAmountView *)dataView subCount:(UITextField *)subTextField;
-(void)cellDataView:(BKCMCellAmountView *)dataView deletButtonClick:(UITextField *)deleteTextField;
-(void)cellDataView:(BKCMCellAmountView *)dataView updateButtonClick:(UITextField *)amountField; // 键盘的完成代理
-(void)cellDataView:(BKCMCellAmountView *)dataView cancleButtonClick:(UITextField *)cancleField; // 键盘的取消代理
@end

@interface BKCMCellAmountView : UIView

@property(nonatomic,copy) NSString *amount;
@property (nonatomic, strong) UITextField *label1; //中间数量
@property (nonatomic, strong) NSString *tempStr;
@property (nonatomic, strong) UIButton *button1;  //减号按钮
@property (nonatomic, strong) UIButton *button2;   //加号按钮


@property (nonatomic, weak ) id <CellDataViewDelegate> dataViewDelegate;

-(void)updateDataWithShoppingCarList:(BKCMGoodsDetailModel *)orderModel;

@end
